#!/usr/bin/python
# -*- coding: utf-8 -*-
# @version        : 1.0
# @Create Time    : 2024/9/6 11:11
# @File           : vendor
# @IDE            : PyCharm
# @desc           : 描述
from datetime import datetime

from fastapi import Depends
from core.dependencies import Paging, QueryParams


class OrderParams(QueryParams):
    """
    列表分页
    """

    def __init__(
            self,
            params: Paging = Depends(),
            order_no: str = None,
            order_type: str = None,
            prepared_by: str = None,
            prepared_dept: str = None,
            prepared_phone: str = None,

            material_description: str = None,
            vendor: str = None,
            po: str = None,
            status: str = None,
    ):
        super().__init__(params)
        self.order_no = order_no
        self.order_type = order_type

        self.prepared_by = prepared_by
        self.prepared_dept = prepared_dept
        self.prepared_phone = prepared_phone

        self.material_description = ('like', material_description)

        self.vendor = vendor
        self.po = po
        self.status = status
